class Solution:
    def countPrefixes(self, words: List[str], s: str) -> int:
        count =0
        for word in words:
            if s.startswith(word):#判断是否为s开头
                #s是以word为开头
                count+=1
        return  count